filechooser: Translate type column
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 May 2020 23:57:38 +0000 (19:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 May 2020 23:57:38 +0000 (19:57 -0400)
When the code for this was copied from nautilus,
we forgot to adapt it for running in a library
instead of an application - gettext() doesn't work
in a library.

Fixes: #2690
gtk/gtkfilechooserwidget.c

index a6f9363d71a19cc30d2d51aaee6f3e1d65b950f5..6dae50bb0d7e7a364e6275e32d5403f0c15b3fbe 100644 (file)
@@ -4357,7 +4357,7 @@ get_category_from_content_type (const char *content_type)
         {
           if (strcmp (mime_type_map[i].icon_name, icon_name) == 0)
             {
-              basic_type = g_strdup (gettext (mime_type_map[i].display_name));
+              basic_type = g_strdup (_(mime_type_map[i].display_name));
               break;
             }
         }